package com.gxa.modules.sys.mapper;

import com.gxa.modules.sys.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author zhuiyi
 * @since 2022-10-29 03:53:32
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    void add(@Param("id") Integer id, @Param("roleId") Integer roleId);

    void deleteByUserId(Integer id);

    Integer queryRoleById(Integer id);
}
